<?php
if( empty( $param['products'] ) ){
	
	 echo '本类服务还没有相关产品.';
}else{
?>
<table id="base_index_detail_product_item_nav_slider_product_list" summary=""  border="0" cellspacing="0" cellpadding="0">
<caption>共有 <b><?php echo $param['total_rows']; ?></b> 种商品</caption>
<thead>
<tr>
	 <th class="span-8">商品</th>
	 <th class="span-8">描述</th>
	 <th class="span-2 last">价格</th>
</tr>
</thead>
<tbody>
<?php
//循环显示所有的商品
$products = $param['products'];
foreach( $products as $index=>$product_info ){
?>
	 <tr class="base_index_detail_product_item_nav_slider_product_list_tr">
		 <td class="base_index_detail_product_item_nav_slider_product_id"><?php echo $product_info['product_id']?></td>
		 <td class="base_index_detail_product_item_nav_slider_class_id"><?php echo $product_info['product_class_id']?></td>
		 <td><?php echo $product_info['title']; ?></td>
		 <td class="product_describe" title="<?php echo $product_info['describe']; ?>">
<?php 
	//对商品描述进行截短处理
	$product_describe = $product_info['describe'];
	if( mb_strlen( $product_describe , 'UTF-8' ) > 128 ){
		 $product_describe = mb_substr( $product_info['describe'] , 0 , 96 , 'UTF-8' ) . '……';
	}
	echo $product_describe;
?>
		 </td>	 
		 <td><?php echo $product_info['price']; ?></td>
	 </tr>
<?php
}
?>
</tbody>
</table>
<div id="pager_links"><?php echo $param['pager_links']; ?></div>
<?php
}
?>


